package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 发货表
 * </p>
 *
 * @author ZhangJun
 * @since 2019-07-04
 */
@TableName("dispatch_order")
public class DispatchOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订货单id
     */
    @TableField("indent_id")
    private Long indentId;

    /**
     * 采购单id，分割
     */
    @TableField("purchase_orders_id")
    private String purchaseOrdersId;

    /**
     * 下单时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 审核状态 1.待审核 2,审核通过3.审核失败4.退回
     */
    @TableField("check_code")
    private Integer checkCode;

    /**
     * 销售单id
     */
    @TableField("sales_id")
    private Long salesId;

    /**
     * 发货单编号
     */
    @TableField("orderNum")
    private String orderNum;

    /**
     *经销商id
     */
    @TableField("dealer_id")
    private Long dealerId;

    /**
     * 发货状态
     */
    @TableField("dispatch_code")
    private Integer dispatchCode;

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    /**
     * 流程id
     */
    @TableField("process_instance_id")
    private String processInstanceId;

    public Integer getDispatchCode() {
        return dispatchCode;
    }

    public void setDispatchCode(Integer dispatchCode) {
        this.dispatchCode = dispatchCode;
    }

    public Long getDealerId() {
        return dealerId;
    }

    public void setDealerId(Long dealerId) {
        this.dealerId = dealerId;
    }



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getIndentId() {
        return indentId;
    }

    public void setIndentId(Long indentId) {
        this.indentId = indentId;
    }

    public String getPurchaseOrdersId() {
        return purchaseOrdersId;
    }

    public void setPurchaseOrdersId(String purchaseOrdersId) {
        this.purchaseOrdersId = purchaseOrdersId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(Integer checkCode) {
        this.checkCode = checkCode;
    }

    public Long getSalesId() {
        return salesId;
    }

    public void setSalesId(Long salesId) {
        this.salesId = salesId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return "DispatchOrder{" +
        "id=" + id +
        ", indentId=" + indentId +
        ", purchaseOrdersId=" + purchaseOrdersId +
        ", createTime=" + createTime +
        ", checkCode=" + checkCode +
        ", salesId=" + salesId +
        ", orderNum=" + orderNum +
        "}";
    }
}
